package com.bridge.common.route;

import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * ARoute 模块路由
 */
public class RouteUtils {
    /**
     * 获取主页需要的一组Fragment
     * @return Fragments
     */
    public static Fragment[] getTabFragment(){
        return new Fragment[]{
                (Fragment) ARouter.getInstance().build("/bridge_hh/HhFragment").navigation(),
                (Fragment) ARouter.getInstance().build("/bridge_txl/TxlFragment").navigation(),
                (Fragment) ARouter.getInstance().build("/bridge_ts/TsFragment").navigation(),
                (Fragment) ARouter.getInstance().build("/bridge_fx/FxFragment").navigation(),
                (Fragment) ARouter.getInstance().build("/bridge_wd/WdFragment").navigation(),
        };
    }

    /**
     * 去引导模块
     */
    public static void turnToGuideActivity(){
        ARouter.getInstance().build("/bridge_login/GuideActivity").navigation();
    }

    /**
     * 去主页
     */
    public static void turnToQiangAppActivity(){
        ARouter.getInstance().build("/bridge_app/HomeActivity").navigation();
    }
    /**
     * 去主页
     */
    public static void turnToMainActivity(){
        ARouter.getInstance().build("/bridge_app/MainActivity").navigation();
    }
}
